using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public partial class MenuPanel
{
    private Button m_StartButton;
    private Button m_HelpButton;
    private Button m_AboutButton;
    private Button m_MoreButton;
    private Button m_ExitButton;

    private CanvasGroup m_MenuPanelCanvasGroup;

    private RectTransform m_ChildPointRectTransform;
    private RectTransform m_MenuRootRectTransform;

    public override void InitializedObj()
    {
        base.InitializedObj();

        m_StartButton = UIObj.transform.Find("MenuRoot/Buttons/Start/Button").GetComponent<Button>();
        m_HelpButton = UIObj.transform.Find("MenuRoot/Buttons/Help/Button").GetComponent<Button>();
        m_AboutButton = UIObj.transform.Find("MenuRoot/Buttons/About/Button").GetComponent<Button>();
        m_MoreButton = UIObj.transform.Find("MenuRoot/Buttons/More/Button").GetComponent<Button>();
        m_ExitButton = UIObj.transform.Find("MenuRoot/Buttons/Exit/Button").GetComponent<Button>();

        m_MenuRootRectTransform = UIObj.transform.Find("MenuRoot").GetComponent<RectTransform>();
        m_ChildPointRectTransform = UIObj.transform.Find("MenuRoot/ChildPoint").GetComponent<RectTransform>();

        m_MenuPanelCanvasGroup = UIObj.GetComponent<CanvasGroup>();
    }
}
